package com.kettle;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;

/**
 * 通过Model类,将数据加载到指定类中
 * 该类只用于测试示例，默认只读取前5列
 */
public class BaseExcelBean extends BaseRowModel {
	@ExcelProperty(value = "第一列", index = 0)
	protected String col1;
	@ExcelProperty(value = "第二列", index = 1)
	protected String col2;
	@ExcelProperty(value = "第三列", index = 2)
	protected String col3;
	@ExcelProperty(value = "第四列", index = 3)
	protected String col4;
	@ExcelProperty(value = "第五列", index = 4)
	protected String col5;

	public String getCol1() {
		return col1;
	}

	public void setCol1(String col1) {
		this.col1 = col1;
	}

	public String getCol2() {
		return col2;
	}

	public void setCol2(String col2) {
		this.col2 = col2;
	}

	public String getCol3() {
		return col3;
	}

	public void setCol3(String col3) {
		this.col3 = col3;
	}

	public String getCol4() {
		return col4;
	}

	public void setCol4(String col4) {
		this.col4 = col4;
	}

	public String getCol5() {
		return col5;
	}

	public void setCol5(String col5) {
		this.col5 = col5;
	}

	@Override
	public String toString() {
		return "[col1=" + col1 + ", col2=" + col2 + ", col3=" + col3 + ", col4=" + col4 + ", col5=" + col5 + "]";
	}
}